package com.kl.forum.enums;

import com.google.common.collect.Lists;

import java.util.List;

public enum DictDailyTaskEnum {
	FATIE(3, "发帖", "post"),
	PINGLUN(4, "评论", "comment"),
	DIANZAN(5, "点赞", "like"),
//	BEIZAN(6, "被赞", "beLiked"),
	FENXIANG(7, "分享帖子", "sharePost"),
	SHOURU(8, "晒收入", "shareMoney");
	
	private int id;
	private String name;
	private String title;
	
	private DictDailyTaskEnum(int id, String name, String title) {
		this.id = id;
		this.name = name;
		this.title = title;
	}

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getTitle() {
		return title;
	}
	
	public static List<Integer> idList(){
		List<Integer> res = Lists.newArrayList();
		for (DictDailyTaskEnum dailyTask : DictDailyTaskEnum.values()) {
			res.add(dailyTask.getId());
		}
		return res;
	}
	
}
